package com.thinker.interview.dynamic_datasource.dynamic_datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

public class DynamicDatasource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return RegionDataSourceContextHolder.getRegion();
    }
}
